<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Kun 微服务统一认证</title>

    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/signin.css" rel="stylesheet">
</head>
<body class="sign_body">
<div class="container form-margin-top">
    <form class="form-signin" th:action="@{/token/form}" method="post">
        <h2 class="form-signin-heading" align="center">统一认证系统</h2>
        <input type="hidden" name="client_id" class="form-control" value="messaging-client" placeholder="所属客户端">
        <input type="hidden" name="grant_type" class="form-control" value="secret" placeholder="所属客户端">
        <input type="text" class="form-control form-margin-top" placeholder="账号" required autofocus name="username"/>
        <input type="password" name="password" class="form-control" placeholder="密码" required/>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>

        <span th:if="${error}" style="color: red; " th:text="${error}"></span>
    </form>
</div>
</body>
</html>
